package com.yiya.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class CarExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CarExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andNumberIsNull() {
            addCriterion("number is null");
            return (Criteria) this;
        }

        public Criteria andNumberIsNotNull() {
            addCriterion("number is not null");
            return (Criteria) this;
        }

        public Criteria andNumberEqualTo(String value) {
            addCriterion("number =", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotEqualTo(String value) {
            addCriterion("number <>", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberGreaterThan(String value) {
            addCriterion("number >", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberGreaterThanOrEqualTo(String value) {
            addCriterion("number >=", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberLessThan(String value) {
            addCriterion("number <", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberLessThanOrEqualTo(String value) {
            addCriterion("number <=", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberLike(String value) {
            addCriterion("number like", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotLike(String value) {
            addCriterion("number not like", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberIn(List<String> values) {
            addCriterion("number in", values, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotIn(List<String> values) {
            addCriterion("number not in", values, "number");
            return (Criteria) this;
        }

        public Criteria andNumberBetween(String value1, String value2) {
            addCriterion("number between", value1, value2, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotBetween(String value1, String value2) {
            addCriterion("number not between", value1, value2, "number");
            return (Criteria) this;
        }

        public Criteria andRefuelDateIsNull() {
            addCriterion("refuel_date is null");
            return (Criteria) this;
        }

        public Criteria andRefuelDateIsNotNull() {
            addCriterion("refuel_date is not null");
            return (Criteria) this;
        }

        public Criteria andRefuelDateEqualTo(Date value) {
            addCriterionForJDBCDate("refuel_date =", value, "refuelDate");
            return (Criteria) this;
        }

        public Criteria andRefuelDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("refuel_date <>", value, "refuelDate");
            return (Criteria) this;
        }

        public Criteria andRefuelDateGreaterThan(Date value) {
            addCriterionForJDBCDate("refuel_date >", value, "refuelDate");
            return (Criteria) this;
        }

        public Criteria andRefuelDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("refuel_date >=", value, "refuelDate");
            return (Criteria) this;
        }

        public Criteria andRefuelDateLessThan(Date value) {
            addCriterionForJDBCDate("refuel_date <", value, "refuelDate");
            return (Criteria) this;
        }

        public Criteria andRefuelDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("refuel_date <=", value, "refuelDate");
            return (Criteria) this;
        }

        public Criteria andRefuelDateIn(List<Date> values) {
            addCriterionForJDBCDate("refuel_date in", values, "refuelDate");
            return (Criteria) this;
        }

        public Criteria andRefuelDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("refuel_date not in", values, "refuelDate");
            return (Criteria) this;
        }

        public Criteria andRefuelDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("refuel_date between", value1, value2, "refuelDate");
            return (Criteria) this;
        }

        public Criteria andRefuelDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("refuel_date not between", value1, value2, "refuelDate");
            return (Criteria) this;
        }

        public Criteria andLastRefuelLiterIsNull() {
            addCriterion("last_refuel_liter is null");
            return (Criteria) this;
        }

        public Criteria andLastRefuelLiterIsNotNull() {
            addCriterion("last_refuel_liter is not null");
            return (Criteria) this;
        }

        public Criteria andLastRefuelLiterEqualTo(Float value) {
            addCriterion("last_refuel_liter =", value, "lastRefuelLiter");
            return (Criteria) this;
        }

        public Criteria andLastRefuelLiterNotEqualTo(Float value) {
            addCriterion("last_refuel_liter <>", value, "lastRefuelLiter");
            return (Criteria) this;
        }

        public Criteria andLastRefuelLiterGreaterThan(Float value) {
            addCriterion("last_refuel_liter >", value, "lastRefuelLiter");
            return (Criteria) this;
        }

        public Criteria andLastRefuelLiterGreaterThanOrEqualTo(Float value) {
            addCriterion("last_refuel_liter >=", value, "lastRefuelLiter");
            return (Criteria) this;
        }

        public Criteria andLastRefuelLiterLessThan(Float value) {
            addCriterion("last_refuel_liter <", value, "lastRefuelLiter");
            return (Criteria) this;
        }

        public Criteria andLastRefuelLiterLessThanOrEqualTo(Float value) {
            addCriterion("last_refuel_liter <=", value, "lastRefuelLiter");
            return (Criteria) this;
        }

        public Criteria andLastRefuelLiterIn(List<Float> values) {
            addCriterion("last_refuel_liter in", values, "lastRefuelLiter");
            return (Criteria) this;
        }

        public Criteria andLastRefuelLiterNotIn(List<Float> values) {
            addCriterion("last_refuel_liter not in", values, "lastRefuelLiter");
            return (Criteria) this;
        }

        public Criteria andLastRefuelLiterBetween(Float value1, Float value2) {
            addCriterion("last_refuel_liter between", value1, value2, "lastRefuelLiter");
            return (Criteria) this;
        }

        public Criteria andLastRefuelLiterNotBetween(Float value1, Float value2) {
            addCriterion("last_refuel_liter not between", value1, value2, "lastRefuelLiter");
            return (Criteria) this;
        }

        public Criteria andRefuelLiterIsNull() {
            addCriterion("refuel_liter is null");
            return (Criteria) this;
        }

        public Criteria andRefuelLiterIsNotNull() {
            addCriterion("refuel_liter is not null");
            return (Criteria) this;
        }

        public Criteria andRefuelLiterEqualTo(Float value) {
            addCriterion("refuel_liter =", value, "refuelLiter");
            return (Criteria) this;
        }

        public Criteria andRefuelLiterNotEqualTo(Float value) {
            addCriterion("refuel_liter <>", value, "refuelLiter");
            return (Criteria) this;
        }

        public Criteria andRefuelLiterGreaterThan(Float value) {
            addCriterion("refuel_liter >", value, "refuelLiter");
            return (Criteria) this;
        }

        public Criteria andRefuelLiterGreaterThanOrEqualTo(Float value) {
            addCriterion("refuel_liter >=", value, "refuelLiter");
            return (Criteria) this;
        }

        public Criteria andRefuelLiterLessThan(Float value) {
            addCriterion("refuel_liter <", value, "refuelLiter");
            return (Criteria) this;
        }

        public Criteria andRefuelLiterLessThanOrEqualTo(Float value) {
            addCriterion("refuel_liter <=", value, "refuelLiter");
            return (Criteria) this;
        }

        public Criteria andRefuelLiterIn(List<Float> values) {
            addCriterion("refuel_liter in", values, "refuelLiter");
            return (Criteria) this;
        }

        public Criteria andRefuelLiterNotIn(List<Float> values) {
            addCriterion("refuel_liter not in", values, "refuelLiter");
            return (Criteria) this;
        }

        public Criteria andRefuelLiterBetween(Float value1, Float value2) {
            addCriterion("refuel_liter between", value1, value2, "refuelLiter");
            return (Criteria) this;
        }

        public Criteria andRefuelLiterNotBetween(Float value1, Float value2) {
            addCriterion("refuel_liter not between", value1, value2, "refuelLiter");
            return (Criteria) this;
        }

        public Criteria andLastMileageIsNull() {
            addCriterion("last_mileage is null");
            return (Criteria) this;
        }

        public Criteria andLastMileageIsNotNull() {
            addCriterion("last_mileage is not null");
            return (Criteria) this;
        }

        public Criteria andLastMileageEqualTo(Float value) {
            addCriterion("last_mileage =", value, "lastMileage");
            return (Criteria) this;
        }

        public Criteria andLastMileageNotEqualTo(Float value) {
            addCriterion("last_mileage <>", value, "lastMileage");
            return (Criteria) this;
        }

        public Criteria andLastMileageGreaterThan(Float value) {
            addCriterion("last_mileage >", value, "lastMileage");
            return (Criteria) this;
        }

        public Criteria andLastMileageGreaterThanOrEqualTo(Float value) {
            addCriterion("last_mileage >=", value, "lastMileage");
            return (Criteria) this;
        }

        public Criteria andLastMileageLessThan(Float value) {
            addCriterion("last_mileage <", value, "lastMileage");
            return (Criteria) this;
        }

        public Criteria andLastMileageLessThanOrEqualTo(Float value) {
            addCriterion("last_mileage <=", value, "lastMileage");
            return (Criteria) this;
        }

        public Criteria andLastMileageIn(List<Float> values) {
            addCriterion("last_mileage in", values, "lastMileage");
            return (Criteria) this;
        }

        public Criteria andLastMileageNotIn(List<Float> values) {
            addCriterion("last_mileage not in", values, "lastMileage");
            return (Criteria) this;
        }

        public Criteria andLastMileageBetween(Float value1, Float value2) {
            addCriterion("last_mileage between", value1, value2, "lastMileage");
            return (Criteria) this;
        }

        public Criteria andLastMileageNotBetween(Float value1, Float value2) {
            addCriterion("last_mileage not between", value1, value2, "lastMileage");
            return (Criteria) this;
        }

        public Criteria andCurrentMileageIsNull() {
            addCriterion("current_mileage is null");
            return (Criteria) this;
        }

        public Criteria andCurrentMileageIsNotNull() {
            addCriterion("current_mileage is not null");
            return (Criteria) this;
        }

        public Criteria andCurrentMileageEqualTo(Float value) {
            addCriterion("current_mileage =", value, "currentMileage");
            return (Criteria) this;
        }

        public Criteria andCurrentMileageNotEqualTo(Float value) {
            addCriterion("current_mileage <>", value, "currentMileage");
            return (Criteria) this;
        }

        public Criteria andCurrentMileageGreaterThan(Float value) {
            addCriterion("current_mileage >", value, "currentMileage");
            return (Criteria) this;
        }

        public Criteria andCurrentMileageGreaterThanOrEqualTo(Float value) {
            addCriterion("current_mileage >=", value, "currentMileage");
            return (Criteria) this;
        }

        public Criteria andCurrentMileageLessThan(Float value) {
            addCriterion("current_mileage <", value, "currentMileage");
            return (Criteria) this;
        }

        public Criteria andCurrentMileageLessThanOrEqualTo(Float value) {
            addCriterion("current_mileage <=", value, "currentMileage");
            return (Criteria) this;
        }

        public Criteria andCurrentMileageIn(List<Float> values) {
            addCriterion("current_mileage in", values, "currentMileage");
            return (Criteria) this;
        }

        public Criteria andCurrentMileageNotIn(List<Float> values) {
            addCriterion("current_mileage not in", values, "currentMileage");
            return (Criteria) this;
        }

        public Criteria andCurrentMileageBetween(Float value1, Float value2) {
            addCriterion("current_mileage between", value1, value2, "currentMileage");
            return (Criteria) this;
        }

        public Criteria andCurrentMileageNotBetween(Float value1, Float value2) {
            addCriterion("current_mileage not between", value1, value2, "currentMileage");
            return (Criteria) this;
        }

        public Criteria andAmountIsNull() {
            addCriterion("amount is null");
            return (Criteria) this;
        }

        public Criteria andAmountIsNotNull() {
            addCriterion("amount is not null");
            return (Criteria) this;
        }

        public Criteria andAmountEqualTo(Float value) {
            addCriterion("amount =", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotEqualTo(Float value) {
            addCriterion("amount <>", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThan(Float value) {
            addCriterion("amount >", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThanOrEqualTo(Float value) {
            addCriterion("amount >=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThan(Float value) {
            addCriterion("amount <", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThanOrEqualTo(Float value) {
            addCriterion("amount <=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountIn(List<Float> values) {
            addCriterion("amount in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotIn(List<Float> values) {
            addCriterion("amount not in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountBetween(Float value1, Float value2) {
            addCriterion("amount between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotBetween(Float value1, Float value2) {
            addCriterion("amount not between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andBalanceIsNull() {
            addCriterion("balance is null");
            return (Criteria) this;
        }

        public Criteria andBalanceIsNotNull() {
            addCriterion("balance is not null");
            return (Criteria) this;
        }

        public Criteria andBalanceEqualTo(Float value) {
            addCriterion("balance =", value, "balance");
            return (Criteria) this;
        }

        public Criteria andBalanceNotEqualTo(Float value) {
            addCriterion("balance <>", value, "balance");
            return (Criteria) this;
        }

        public Criteria andBalanceGreaterThan(Float value) {
            addCriterion("balance >", value, "balance");
            return (Criteria) this;
        }

        public Criteria andBalanceGreaterThanOrEqualTo(Float value) {
            addCriterion("balance >=", value, "balance");
            return (Criteria) this;
        }

        public Criteria andBalanceLessThan(Float value) {
            addCriterion("balance <", value, "balance");
            return (Criteria) this;
        }

        public Criteria andBalanceLessThanOrEqualTo(Float value) {
            addCriterion("balance <=", value, "balance");
            return (Criteria) this;
        }

        public Criteria andBalanceIn(List<Float> values) {
            addCriterion("balance in", values, "balance");
            return (Criteria) this;
        }

        public Criteria andBalanceNotIn(List<Float> values) {
            addCriterion("balance not in", values, "balance");
            return (Criteria) this;
        }

        public Criteria andBalanceBetween(Float value1, Float value2) {
            addCriterion("balance between", value1, value2, "balance");
            return (Criteria) this;
        }

        public Criteria andBalanceNotBetween(Float value1, Float value2) {
            addCriterion("balance not between", value1, value2, "balance");
            return (Criteria) this;
        }

        public Criteria andFuelConsumptionIsNull() {
            addCriterion("fuel_consumption is null");
            return (Criteria) this;
        }

        public Criteria andFuelConsumptionIsNotNull() {
            addCriterion("fuel_consumption is not null");
            return (Criteria) this;
        }

        public Criteria andFuelConsumptionEqualTo(Float value) {
            addCriterion("fuel_consumption =", value, "fuelConsumption");
            return (Criteria) this;
        }

        public Criteria andFuelConsumptionNotEqualTo(Float value) {
            addCriterion("fuel_consumption <>", value, "fuelConsumption");
            return (Criteria) this;
        }

        public Criteria andFuelConsumptionGreaterThan(Float value) {
            addCriterion("fuel_consumption >", value, "fuelConsumption");
            return (Criteria) this;
        }

        public Criteria andFuelConsumptionGreaterThanOrEqualTo(Float value) {
            addCriterion("fuel_consumption >=", value, "fuelConsumption");
            return (Criteria) this;
        }

        public Criteria andFuelConsumptionLessThan(Float value) {
            addCriterion("fuel_consumption <", value, "fuelConsumption");
            return (Criteria) this;
        }

        public Criteria andFuelConsumptionLessThanOrEqualTo(Float value) {
            addCriterion("fuel_consumption <=", value, "fuelConsumption");
            return (Criteria) this;
        }

        public Criteria andFuelConsumptionIn(List<Float> values) {
            addCriterion("fuel_consumption in", values, "fuelConsumption");
            return (Criteria) this;
        }

        public Criteria andFuelConsumptionNotIn(List<Float> values) {
            addCriterion("fuel_consumption not in", values, "fuelConsumption");
            return (Criteria) this;
        }

        public Criteria andFuelConsumptionBetween(Float value1, Float value2) {
            addCriterion("fuel_consumption between", value1, value2, "fuelConsumption");
            return (Criteria) this;
        }

        public Criteria andFuelConsumptionNotBetween(Float value1, Float value2) {
            addCriterion("fuel_consumption not between", value1, value2, "fuelConsumption");
            return (Criteria) this;
        }

        public Criteria andHandledByIsNull() {
            addCriterion("handled_by is null");
            return (Criteria) this;
        }

        public Criteria andHandledByIsNotNull() {
            addCriterion("handled_by is not null");
            return (Criteria) this;
        }

        public Criteria andHandledByEqualTo(String value) {
            addCriterion("handled_by =", value, "handledBy");
            return (Criteria) this;
        }

        public Criteria andHandledByNotEqualTo(String value) {
            addCriterion("handled_by <>", value, "handledBy");
            return (Criteria) this;
        }

        public Criteria andHandledByGreaterThan(String value) {
            addCriterion("handled_by >", value, "handledBy");
            return (Criteria) this;
        }

        public Criteria andHandledByGreaterThanOrEqualTo(String value) {
            addCriterion("handled_by >=", value, "handledBy");
            return (Criteria) this;
        }

        public Criteria andHandledByLessThan(String value) {
            addCriterion("handled_by <", value, "handledBy");
            return (Criteria) this;
        }

        public Criteria andHandledByLessThanOrEqualTo(String value) {
            addCriterion("handled_by <=", value, "handledBy");
            return (Criteria) this;
        }

        public Criteria andHandledByLike(String value) {
            addCriterion("handled_by like", value, "handledBy");
            return (Criteria) this;
        }

        public Criteria andHandledByNotLike(String value) {
            addCriterion("handled_by not like", value, "handledBy");
            return (Criteria) this;
        }

        public Criteria andHandledByIn(List<String> values) {
            addCriterion("handled_by in", values, "handledBy");
            return (Criteria) this;
        }

        public Criteria andHandledByNotIn(List<String> values) {
            addCriterion("handled_by not in", values, "handledBy");
            return (Criteria) this;
        }

        public Criteria andHandledByBetween(String value1, String value2) {
            addCriterion("handled_by between", value1, value2, "handledBy");
            return (Criteria) this;
        }

        public Criteria andHandledByNotBetween(String value1, String value2) {
            addCriterion("handled_by not between", value1, value2, "handledBy");
            return (Criteria) this;
        }

        public Criteria andPlaceIsNull() {
            addCriterion("place is null");
            return (Criteria) this;
        }

        public Criteria andPlaceIsNotNull() {
            addCriterion("place is not null");
            return (Criteria) this;
        }

        public Criteria andPlaceEqualTo(String value) {
            addCriterion("place =", value, "place");
            return (Criteria) this;
        }

        public Criteria andPlaceNotEqualTo(String value) {
            addCriterion("place <>", value, "place");
            return (Criteria) this;
        }

        public Criteria andPlaceGreaterThan(String value) {
            addCriterion("place >", value, "place");
            return (Criteria) this;
        }

        public Criteria andPlaceGreaterThanOrEqualTo(String value) {
            addCriterion("place >=", value, "place");
            return (Criteria) this;
        }

        public Criteria andPlaceLessThan(String value) {
            addCriterion("place <", value, "place");
            return (Criteria) this;
        }

        public Criteria andPlaceLessThanOrEqualTo(String value) {
            addCriterion("place <=", value, "place");
            return (Criteria) this;
        }

        public Criteria andPlaceLike(String value) {
            addCriterion("place like", value, "place");
            return (Criteria) this;
        }

        public Criteria andPlaceNotLike(String value) {
            addCriterion("place not like", value, "place");
            return (Criteria) this;
        }

        public Criteria andPlaceIn(List<String> values) {
            addCriterion("place in", values, "place");
            return (Criteria) this;
        }

        public Criteria andPlaceNotIn(List<String> values) {
            addCriterion("place not in", values, "place");
            return (Criteria) this;
        }

        public Criteria andPlaceBetween(String value1, String value2) {
            addCriterion("place between", value1, value2, "place");
            return (Criteria) this;
        }

        public Criteria andPlaceNotBetween(String value1, String value2) {
            addCriterion("place not between", value1, value2, "place");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andDelFlagIsNull() {
            addCriterion("del_flag is null");
            return (Criteria) this;
        }

        public Criteria andDelFlagIsNotNull() {
            addCriterion("del_flag is not null");
            return (Criteria) this;
        }

        public Criteria andDelFlagEqualTo(Integer value) {
            addCriterion("del_flag =", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagNotEqualTo(Integer value) {
            addCriterion("del_flag <>", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagGreaterThan(Integer value) {
            addCriterion("del_flag >", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("del_flag >=", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagLessThan(Integer value) {
            addCriterion("del_flag <", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagLessThanOrEqualTo(Integer value) {
            addCriterion("del_flag <=", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagIn(List<Integer> values) {
            addCriterion("del_flag in", values, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagNotIn(List<Integer> values) {
            addCriterion("del_flag not in", values, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagBetween(Integer value1, Integer value2) {
            addCriterion("del_flag between", value1, value2, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("del_flag not between", value1, value2, "delFlag");
            return (Criteria) this;
        }

        public Criteria andCreateByIsNull() {
            addCriterion("create_by is null");
            return (Criteria) this;
        }

        public Criteria andCreateByIsNotNull() {
            addCriterion("create_by is not null");
            return (Criteria) this;
        }

        public Criteria andCreateByEqualTo(Integer value) {
            addCriterion("create_by =", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotEqualTo(Integer value) {
            addCriterion("create_by <>", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByGreaterThan(Integer value) {
            addCriterion("create_by >", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByGreaterThanOrEqualTo(Integer value) {
            addCriterion("create_by >=", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLessThan(Integer value) {
            addCriterion("create_by <", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLessThanOrEqualTo(Integer value) {
            addCriterion("create_by <=", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByIn(List<Integer> values) {
            addCriterion("create_by in", values, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotIn(List<Integer> values) {
            addCriterion("create_by not in", values, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByBetween(Integer value1, Integer value2) {
            addCriterion("create_by between", value1, value2, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotBetween(Integer value1, Integer value2) {
            addCriterion("create_by not between", value1, value2, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateByIsNull() {
            addCriterion("update_by is null");
            return (Criteria) this;
        }

        public Criteria andUpdateByIsNotNull() {
            addCriterion("update_by is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateByEqualTo(Integer value) {
            addCriterion("update_by =", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotEqualTo(Integer value) {
            addCriterion("update_by <>", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByGreaterThan(Integer value) {
            addCriterion("update_by >", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByGreaterThanOrEqualTo(Integer value) {
            addCriterion("update_by >=", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByLessThan(Integer value) {
            addCriterion("update_by <", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByLessThanOrEqualTo(Integer value) {
            addCriterion("update_by <=", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByIn(List<Integer> values) {
            addCriterion("update_by in", values, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotIn(List<Integer> values) {
            addCriterion("update_by not in", values, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByBetween(Integer value1, Integer value2) {
            addCriterion("update_by between", value1, value2, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotBetween(Integer value1, Integer value2) {
            addCriterion("update_by not between", value1, value2, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}